function map = vm_map_vg(src_img, blkw, blkh, b_fv, e_fv, s_fv, t_fv)

blk_list = vm_im2blk(src_img, blkw, blkh);
[brows bcols] = size(blk_list);
blk_type = zeros(brows, bcols);
img_gm = im_gradient(src_img);
gm_list = vm_im2blk(img_gm, blkw, blkh);
for i = 1:brows
    for j = 1:bcols
        blk = blk_list{i,j};
        blk_var = var(blk(:))/numel(blk);
        gm = gm_list{i,j};
        blk_gm = mean(gm(:));
        blk_fv = [blk_var blk_gm];
        db = norm(blk_fv - b_fv);
        de = norm(blk_fv - e_fv);
        ds = norm(blk_fv - s_fv);
        dt = norm(blk_fv - t_fv);
        d = [db de ds dt];
        [dm im] = min(d);
        blk_type(i,j) = im - 1;        
    end
end
map = vm_maprender(src_img, blk_list, blk_type);
end